package com.itheima.d5_data_stream;

import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class DataOutputStreamTest1 {
    public static void main(String[] args) {
        try (
                DataOutputStream dos = new DataOutputStream(new FileOutputStream("Day18-io-app\\src\\itheimaOut07.txt"));
                ){

            dos.writeInt(97);
            dos.writeDouble(97.2);
            dos.writeBoolean(false);
            dos.writeUTF("发发疯22");

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
